package com.business.dao;

import com.business.domain.ActivitiesLoan;
import com.business.domain.ActivitiesLoanExample;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository("activitiesLoanMapper")
public interface ActivitiesLoanMapper {
    int countByExample(ActivitiesLoanExample example);

    int deleteByExample(ActivitiesLoanExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ActivitiesLoan record);

    int insertSelective(ActivitiesLoan record);

    List<ActivitiesLoan> selectByExample(ActivitiesLoanExample example);

    ActivitiesLoan selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ActivitiesLoan record, @Param("example") ActivitiesLoanExample example);

    int updateByExample(@Param("record") ActivitiesLoan record, @Param("example") ActivitiesLoanExample example);

    int updateByPrimaryKeySelective(ActivitiesLoan record);

    int updateByPrimaryKey(ActivitiesLoan record);
    /**
     * 检验活动是否已经添加
     */
    int checkLoan(Map<String,Object> map);
}